#pragma once
#include "ldap_result.h"

class Search_Result :
	public LDAP_Result
{
	vector<Atribut<char *>> atribute_cautate;
	char *ldif_Result;
	

public:
	class Search_Result_Exception
	{
		char *msg;
		int cod;
	public:
		Search_Result_Exception(char *m,int c)
		{
			msg=new char[strlen(m)+1];
			if(msg==0)
				throw new exception();
			strcpy(msg,m);
			cod=c;
		}

		char *getMsg()const
		{
			return msg;
		}

		int getCode()const
		{
			return cod;
		}

		~Search_Result_Exception()
		{
			delete[] msg;
		}
	};

	Search_Result(char *ras,bool s,vector<Atribut<char *>> atrib_cautate);

	Search_Result (char *ras,bool s);

	~Search_Result(void);

	void afisareResult();

	vector<Atribut<char *>> Da_atribute_cautate()const;

};

